class MemberWeight:

    CSV_COLUMN = ["日期","姓名","身高cm","体重kg","肌肉量kg","体脂肪率%","性别","年龄","手机号","工作/居住地址","食物过敏"]

    CSV_DICT = {"日期": "cal_date", "姓名": "name", "身高cm": "height", "体重kg": "weight", "肌肉量kg": "muscle",
                "体脂肪率%": "bodyFatRat", "性别": "sex", "年龄": "age", "手机号": "uname", "工作/居住地址": "address",
                "食物过敏": "allergy"}

    @staticmethod
    def load_csv(obj):
        convert = dict()
        for CLU_index in MemberWeight.CSV_COLUMN:
            convert[MemberWeight.CSV_DICT[CLU_index]] = str(obj[CLU_index]).replace("\t", "")
        return convert